export const baseGraphOption = {
    
  tooltip: {},
  animationDurationUpdate: 1500,
  animationEasingUpdate: 'quinticInOut',
  series : [
      {
          type: 'graph',
          tooltip:{
              
          },
          layout: 'force',
          roam: true,
          focusNodeAdjacency:true,
          symbolSize: 10,
          // roam: true,
          force:{
            repulsion:[4000,10000],
            edgeLength: [20, 60]
          },
          label: {
              normal: {
                  show: true
              }
          },
          edgeSymbol: ['circle', 'arrow'],
          edgeSymbolSize: [4, 10],
          edgeLabel: {
              normal: {
                  textStyle: {
                      fontSize: 20
                  }
              }
          },
          data: [], //待配置
          links: [], //待配置
          lineStyle: {
              color:'red',
              width: 2,
          },
          animationDelay:1000
      }
  ]
}


export const  baseLineOption = {
  color:['#FF9900','#DD5555','#8F44FF','#3385FF'],
  tooltip: {
      trigger: 'axis',
      padding: [10, 20],
      // formatter:(params) => {
      //   console.log(params, params)
      //   let content = params.map(item => {
      //     let {seriesName,value,marker} = item
      //     return `<tr><td>${marker}</td><td>${seriesName}:</td><td>${value}</td></tr> `
      //   }).join('')
      //   return `<table>${content}</table>`
      // }
  },
  legend: {
    itemGap: 28,
    itemWidth: 10,
    itemHeight: 10,
    data:[],//待配置
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  // toolbox: {
  //     feature: {
  //         saveAsImage: {}
  //     }
  // },
  xAxis: {
      type: 'category',
      boundaryGap: false,
      data: [] //待配置
  },
  
  yAxis: {
      type: 'value',
      axisLine: {
        show: false
      },
      axisTick: {
        lineStyle: {
          color: '#eee'
        }
      },
      axisLabel: {
        margin: 22,
        textStyle: {
          color: '#666'
        }
      },
      splitLine: {
        lineStyle: {
          color: '#eee'
        }
      }
  },
  series: []//待配置
}